home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 10
/
AACD 10.iso
/
AACD
/
Magazine
/
Morphos
/
GCC
/
ppc-amigaos
/
include
/
mgl
/
log.h
< prev
next >
Wrap
C/C++ Source or Header
|
2000-01-22
|
1KB
|
53 lines
/*
* $Id: log.h,v 1.2 2000/01/16 20:47:12 hfrieden Exp $
*
* $Author: hfrieden $
*
* $Date: 2000/01/16 20:47:12 $
* $Revision: 1.2 $
*
* (C) 1999 by Hyperion Software
* All rights reserved
*
* This file is part of the MiniGL library project
* See the file Licence.txt for more details
*
*/
#ifndef __LOG_H
#define __LOG_H
/*
** It is probably difficult to support logging of gl calls on other compilers,
** since the egcs/gcc preprocessor supports variable argument macros, and
** I am using it :)
*/
#ifdef NLOGGING
#define LOG(level, func, format, args...)
#else
#ifdef __PPC__
extern int MGLDebugLevel;
#define LOG(level, func, format, args...) \
if (MGLDebugLevel >= level) \
{ \
kprintf("[MiniGL::%s] ", #func); \
kprintf(format , ## args ); \
kprintf("\n"); \
}
#else
extern int MGLDebugLevel;
#define LOG(level, func, format, args...) \
if (MGLDebugLevel >= level) \
{ \
mykprintf("[MiniGL::%s] ", #func); \
mykprintf(format , ## args ); \
mykprintf("\n"); \
}
#endif
#endif
#endif